<html>
<head>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script type="text/javascript">
    var map;
    function init(){
        OpenLayers.Util.onImageLoadErrorColor = "transparent";

        map = new OpenLayers.Map('map', {
	  maxExtent: new OpenLayers.Bounds(-20000000.000000,-20000000.000000,20000000.000000,20000000.000000),
          maxResolution: 50062.578223,
          numZoomLevels: 20,
          units: 'm',
          projection: new OpenLayers.Projection("EPSG:900913"),
	  displayProjection: new OpenLayers.Projection("EPSG:4326")
        });
        var layer = new OpenLayers.Layer.WMS( "WMS osm",
            "http://localhost:8080/service?", {layers: "osm", format: "image/jpeg", srs:"EPSG:900913"},
            {singleTile: true, ratio: 1}, {isBaseLayer: true} );

        map.addLayer(layer);
        map.zoomToMaxExtent();
    }
</script>
</head>
  <body onload="init();">
    <div id="map"></div>
  </body>
</html>
